aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/receive
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-08-19 12:05:20 -0500
committerAdrien Hopkins <[email protected]>2022-08-19 12:05:20 -0500
commitc5da4bee0df769a83bbebcfc4f105e5326f62987 (patch)
tree7495c4b21db1fc758ac4ef6826ad50e3f6180b42 /src/routes/[username]/receive
parent7935e114ec9845dcf298f2e4b4d9926164acfed3 (diff)
downloadcoinos-ui-c5da4bee0df769a83bbebcfc4f105e5326f62987.tar.gz
coinos-ui-c5da4bee0df769a83bbebcfc4f105e5326f62987.zip
Extracted all remaining strings to en.json
- Changed SATS to SAT, and hours to hr to be more international - Edited conversion fee warning because it was incorrect (you only pay a fee if you're converting between BTC<->Liquid<->Lightning)
Diffstat (limited to 'src/routes/[username]/receive')
-rw-r--r--src/routes/[username]/receive/+page.svelte11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/routes/[username]/receive/+page.svelte b/src/routes/[username]/receive/+page.svelte
index f0fa0fbd..783ae0a3 100644
--- a/src/routes/[username]/receive/+page.svelte
+++ b/src/routes/[username]/receive/+page.svelte
@@ -5,6 +5,7 @@
import { invoiceAmount, invoiceAmountFiat, rate, user } from '$lib/store';
import { post, warning } from '$lib/utils';
import { page } from '$app/stores';
+ import { _, number } from 'svelte-i18n';
let useFiat = true;
let amountFiat = 0;
@@ -50,7 +51,7 @@
}
}
} else if (value !== '.' && value !== '<' && parseInt(amountFiat + value) > $rate) {
- warning('Please enter an amount less than 1 bitcoin.');
+ warning($_('user.receive.lessThan1BTCWarning'));
} else if (amountFiat !== 0 && amountFiat.match(/\.../)) {
return;
} else {
@@ -70,7 +71,7 @@
}
}
} else if (value !== '<' && parseInt(amountSats + value) > 100000000) {
- warning('Please enter an amount less than 1 bitcoin.');
+ warning($_('user.receive.lessThan1BTCWarning'));
} else {
amountSats = amountSats + value;
}
@@ -93,11 +94,11 @@
<div class="text-center">
<div class="text-5xl md:text-6xl font-semibold tracking-widest mb-1">
{useFiat ? `$${amountFiat}` : amountSatsFormatted}<span
- class="tracking-normal text-base font-normal">{useFiat ? 'USD' : 'SATS'}</span
+ class="tracking-normal text-base font-normal">{useFiat ? 'USD' : 'SAT'}</span
>
</div>
<span class="text-secondary mr-1"
- >{useFiat ? `${amountSatsConverted} SATS` : `${amountFiatConverted} USD`}</span
+ >{useFiat ? `${amountSatsConverted} SAT` : `${amountFiatConverted} USD`}</span
>
<button
on:click={() => {
@@ -156,7 +157,7 @@
? 'opacity-50'
: 'opacity-100'}"
on:click={submit}
- disabled={$invoiceAmount === 0}><Icon icon="qr" style="mr-2" /> Show QR</button
+ disabled={$invoiceAmount === 0}><Icon icon="qr" style="mr-2" /> {$_('user.receive.showQR')}</button
>
<!--
<button